﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace SmartMosaicServer
{
    public partial class list : System.Web.UI.Page
    {
        private SqlDataSource dataSource = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            string selectCommand = "SELECT * FROM [DeepZoomList] WHERE WriterId = '" + User.Identity.Name + "'";

            dataSource = new SqlDataSource
                (
                    ConfigurationManager.ConnectionStrings["SmartMosaicConnectionString"].ConnectionString,
                    selectCommand
                );

            DeepZoomList.DataSource = dataSource;
            DeepZoomList.DataBind();
        }
    }
}
